﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;

namespace PocketBook.ViewModels
{
    [Serializable]
    public class NoteList : ObservableCollection<NoteItem>, ICloneable
    {
        public NoteList()
        {
        }

        public NoteList(IEnumerable<NoteItem> list) : base(list)
        {
        }

        public void AddRange(IEnumerable<NoteItem> list)
        {
            foreach (var noteItem in list) Add(noteItem);
        }

        public object Clone()
        {
            return new NoteList(this);
        }
    }
}